//1.引入express模块
const express = require("express");
//3.引入控制层
const { login, register } = require("../controller/userContoller");
//2.创建路由对象
const userRouter = express.Router();

//4.配置对应控制器的方法
userRouter.post("/login", login);
userRouter.post("/reg", register);

module.exports = {
    userRouter
}

